﻿using System;

namespace FirstFloor.Documents.Pdf
{
    /// <summary>
    /// Represents the abstract PDF object base class.
    /// </summary>
    internal abstract class PdfObject
    {
        /// <summary>
        /// Gets the identifier for indirect objects.
        /// </summary>
        /// <value>The identifier.</value>
        public ObjectIdentifier? Identifier { get; internal set; }

        /// <summary>
        /// Gets a value indicating whether this instance is an indirect object.
        /// </summary>
        /// <value>
        /// 	<c>true</c> if this instance is indirect object; otherwise, <c>false</c>.
        /// </value>
        public bool IsIndirectObject
        {
            get { return this.Identifier != null; }
        }
    }
}
